﻿using System;
using System.Linq;
using System.Text;
using MessageTypeDescriber.Xml;
using NUnit.Framework;

namespace MessageTypeDescriber.Tests.SignatureTests
{
    [TestFixture]
    class MethodSignature
    {
        [Test]
       public void can_generate_signature_properly()
       {
            TypeFullDescription typeFullDescription = new TypeFullDescription(typeof(FakeClassForSignatureTests));

            const string expected = "List<Dictionary<List<Int32>, IList<Double>>> MethodName(Int32, IEnumerable<IEnumerable<IEnumerable<FakeClassForSignatureTests>>>, Boolean)";

            String observed = typeFullDescription.Elements[0].Signature;

            Assert.AreEqual(expected,observed);

       }
    }
}
